package com.flin.icesilkworm.examination.bas.service.impl;

import static com.flin.icesilkworm.examination.gen.bas.populator.GeneratedTheExaminationPaperRelPopulator.populate;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.flin.icesilkworm.examination.bas.constant.ITheExaminationPaperRelConstant;
import com.flin.icesilkworm.examination.bas.exp.TheExaminationPaperRelExample;
import com.flin.icesilkworm.examination.bas.service.ITheExaminationPaperRelService;
import com.flin.icesilkworm.examination.gen.bas.service.GeneratedTheExaminationPaperRelService;
import com.flin.icesilkworm.framework.ui.pojo.UiViewForm;
@Service("theExaminationPaperRelService")
@Transactional
public class TheExaminationPaperRelServiceImpl extends GeneratedTheExaminationPaperRelService implements ITheExaminationPaperRelService,ITheExaminationPaperRelConstant{

	@Transactional(readOnly=true)
	public Long count(UiViewForm form) {

		TheExaminationPaperRelExample example = new TheExaminationPaperRelExample();
		
		populate(example,form);

		return theExaminationPaperRelMapper.countBy(example);
	}


}